package com.dahong.cloud.client.feign.interceptor;

import com.lambda.cloud.feign.hmac.HmacClientRequestInterceptor;
import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * Feign HMAC 局部生效拦截器
 */
public class FeignHmacRequestInterceptor implements RequestInterceptor {

    static final HmacClientRequestInterceptor hmacClientRequestInterceptor =
            new HmacClientRequestInterceptor("123", "123456");

    @Override
    public void apply(RequestTemplate requestTemplate) {
        hmacClientRequestInterceptor.apply(requestTemplate);
    }
}
